/*
 * dialog.h
 *
 *  Created on: 21.05.2010
 *      Author: 123
 */

#ifndef DIALOG_H_
#define DIALOG_H_
#include "oslib/oslib.h"
extern OSL_IMAGE* dialogPause;
class boxrun {

public:
	boxrun(char*, float);
	~boxrun() {
		string = 0;
		speed = 0;
	}
	void drawbox();
	void SetSpeedAndString(char*, float);
	/*int IsStop(){
	 if(length<time){
	 stop=true;
	 return 1;

	 }
	 else{
	 return  0;
	 }

	 }*/
	int IsStop() {
		if (length < time) {
			stop = true;
			//this->pauseMenu=false;
			return 1;
		}

		else {
			return 0;
		}
	}
	bool pauseMenu;

private:
	char * string;
	float speed;
	float time;
	float length;
	bool stop;
	bool pause;
	int Amount;
	float SecondSpeed;

};
extern boxrun * Dialog;

#endif /* DIALOG_H_ */
